var webpack = require("webpack")
module.exports = {
	chainWebpack: config => {
		config.plugin('provide').use(webpack.ProvidePlugin, [{
			'window.Quill': 'quill/dist/quill.js',
		   'Quill': 'quill/dist/quill.js'
	 }]);
	},
	publicPath: '/',
	outputDir: 'dist',
	lintOnSave: false,
	// untimeCompiler: true,
	devServer: {
		open: true,
		host: '192.168.59.13',
		port: 8082,
		https: false,
		proxy: {
			'/mapapi': {
				target: 'https://api.map.baidu.com',
				ws: true,
				changOrigin: true,
				pathRewrite: {
					'^/mapapi': '/'
				}
			},
			'/member-manager': {
				target: 'http://192.168.59.14:8016', //子豪
				changOrigin: true,
				pathRewrite: {
					'^/member-manager': '/member-manager'
				}
			},
			'/member-security': {
				target: 'http://192.168.59.14:8012', //子豪
				changOrigin: true,
				pathRewrite: {
					'^/member-security': '/member-security'
				}
			},
			'/api/member-activiti': {
				target: 'http://192.168.59.14:8004', //子豪
				changOrigin: true,
				pathRewrite: {
					'^/api/member-activiti': '/member-activiti'
				}
			},
		}
	}
}